﻿@{
    ViewBag.Title = Local("LogManagement");
}

@model List<LogInfo>
           
@if (Model != null)
{
@CPHelper.ShowPager(ViewBag.Pages, PageIndex, CUrls.HostLogView, new Func<int, string>(CUrls.GetHostLogView))
<div class="box">
    <h3>@Local("LogInfo.LogList")（@GLocal("Pager.Pages", ViewBag.Pages)）</h3>
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>@Local("LogInfo.LogType")</td>
                <td>@Local("LogInfo.LogDate")</td>
                <td>@Local("LogInfo.Source")</td>
                <td class="tcenter">@Local("LogInfo.EventID")</td>
                <td>@Local("LogInfo.Category")</td>
                <td class="action">@Local("LogInfo.Action")</td>
            </tr>
        </thead>
        <tbody class="hoverline">
        @foreach (var log in Model)
        { 
            <tr>
                <td>@log.LogType</td>
                <td>@log.LogDate.ToLocalDateTimeString()</td>
                <td>@log.Source</td>
                <td class="tcenter">@((int)log.EventID)</td>
                <td>@log.Category</td>
                <td class="action"><a href="javascript:void(0);" onclick="return openModal('@CUrls.DialogLogView?id=@log.LogID', 700);">@Local("LogInfo.View")</a></td>
            </tr>
        }
        </tbody>
    </table>
</div>
@CPHelper.ShowPager(ViewBag.Pages, PageIndex, CUrls.HostLogView, new Func<int, string>(CUrls.GetHostLogView))
}